package com.fenghao.subject.domain.convert;

import com.fenghao.subject.domain.entity.SubjectLabelBO;
import com.fenghao.subject.infra.basic.entity.SubjectLabel;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * SubjectLabelBO ——> SubjectLabel (Bean转换)
 */
@Mapper
public interface SubjectLabelConvert {

    SubjectLabelConvert INSTANCE = Mappers.getMapper(SubjectLabelConvert.class);

    SubjectLabel convertBoToLabel(SubjectLabelBO subjectLabelBo);

    List<SubjectLabelBO> convertLabelListToLabelBOList(List<SubjectLabel> subjectLabelList);
}
